package com.hsurosy.infrastructure.persistent.dao;

import com.hsurosy.infrastructure.persistent.po.Award;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-10-14 18:57
 * @Description 奖品 DAO
 * @Version: v1.0.0
 */
@Mapper
public interface IAwardDao {

    /**
     * 查询所有奖品列表
     *
     * @return
     * [
     *     Award(id=1, awardId=101, awardKey="user_credit_random", awardConfig="1,100", awardDesc="用户积分随机", ...),
     *     Award(id=2, awardId=102, awardKey="openai_use_count", awardConfig="5", awardDesc="OpenAI 增加使用次数", ...)
     * ]
     */
    List<Award> queryAwardList();

    String queryAwardConfigByAwardId(Integer awardId);

    String queryAwardKeyByAwardId(Integer awardId);

}
